const conversationreducer = (state=[],action)=>{
    if(action.type == 'ADD_CON'){
        // 新建会话
        return [...state,action.value]
    }
    else if(action.type == 'GET_CON'){
        // 得到会话列表
        return action.value
    }   
    else if(action.type == 'DEL_CON'){
        // 不会写
    }
    return state
}

export default conversationreducer